package com.yiwyn.interceptordemo.controller;


import com.yiwyn.interceptordemo.domain.User;
import com.yiwyn.interceptordemo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {


    @Autowired
    private UserMapper userMapper;

    @GetMapping("/test")
    public Object test() {
        List<User> users = userMapper.selectAll();

        return users;
    }


}
